package com.leyou.item.api;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 *  获取商品类目名称的接口，提供elasticsearch获取数据时调用的接口，继承该API调用item使用FeignClient、
 */
@RequestMapping("category")
public interface CategoryAip {

    @GetMapping("names")
    List<String> queryNameByIds(@RequestParam("ids") List<Long> ids);
}